﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="aspnet2._Default" Trace="true" TraceMode="SortByCategory" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>注册</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
            <asp:Label ID="ErrorInfo" runat="server" BackColor="#CC3300"></asp:Label>
    <div style="height: 282px">
    
        <asp:Panel ID="Panel1" runat="server" Height="245px" Width="670px">
            
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="用户名"></asp:Label>
                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                    <cc1:TextBoxWatermarkExtender ID="UserName_TextBoxWatermarkExtender" 
                        runat="server" Enabled="True" TargetControlID="UserName" WatermarkText="用户名">
                    </cc1:TextBoxWatermarkExtender>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="用户名不能为空" 
                        Visible="False"></asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                        runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
                    </cc1:ValidatorCalloutExtender>
                </ContentTemplate>
            </asp:UpdatePanel>
            
            <br />
            
            <asp:Label ID="Label2" runat="server" Text="密码"></asp:Label>
            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="Password" Display="Dynamic" ErrorMessage="密码不能为空" 
                Visible="False"></asp:RequiredFieldValidator>
            <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator3_ValidatorCalloutExtender" 
                runat="server" Enabled="True" TargetControlID="RequiredFieldValidator3">
            </cc1:ValidatorCalloutExtender>
            <br />
            <asp:Label ID="Label3" runat="server" Text="确认密码"></asp:Label>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="TextBox3" Display="None" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
            <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender" 
                runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2">
            </cc1:ValidatorCalloutExtender>
            
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="Password" ControlToValidate="TextBox3" Display="Dynamic" 
                ErrorMessage="密码不匹配"></asp:CompareValidator>
            &nbsp;
            <cc1:ValidatorCalloutExtender ID="CompareValidator1_ValidatorCalloutExtender" 
                runat="server" Enabled="True" TargetControlID="CompareValidator1">
            </cc1:ValidatorCalloutExtender>
            
            <br />
            省份<asp:DropDownList ID="DropDownList1" runat="server" 
                DataSourceID="SqlDataSource1" DataTextField="ProvinceName" 
                DataValueField="ProvinceName">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:PrinterShopConnectionString2 %>" 
                SelectCommand="SELECT ProvinceName FROM Province WHERE (ID &gt; 0)"></asp:SqlDataSource>
            <br />
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="注册" />
            <br />
            <br />
            <table align="center" border="0" cellpadding="0" cellspacing="0" height="80" 
                width="1000">
                <tr>
                    <td align="center" class="STYLE3" valign="middle">
                        <p>
                            成都市春之晖祥科技有限公司 Copyright@2006-2008版权所有 <a href="http://www.miibeian.gov.cn/" 
                                target="_blank">备案编号:粤ICP备09041566</a>
                            <br />
                            公司地址：成都市小南街冠城国际花园檀香阁4F
                            <br />
                            销售热线：028-85551649 传真：028-85530847</p>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    
    </div>
    </form>
</body>
</html>
